	<script type="text/javascript">
			$(function() {
				var oTable1 = $('#sample-table-5').dataTable( {
				"aoColumns": [
			      { "bSortable": false },
			        null,
				  { "bSortable": false }
				] } );
				
				
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			
			
				$('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
				function tooltip_placement(context, source) {
					var $source = $(source);
					var $parent = $source.closest('table')
					var off1 = $parent.offset();
					var w1 = $parent.width();
			
					var off2 = $source.offset();
					var w2 = $source.width();
			
					if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';
					return 'left';
				}
			})
		</script>
                
<div class="page-content">
    <div class="page-header position-relative">
        <h1>Tipo Habitaci&oacute;n<small><i class="icon-double-angle-right"></i> Mantenimiento</small></h1>
    </div>
  
    <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-header"><h4>Lista de Tipo de Habitaciones</h4>
                    <span class="widget-toolbar">
                        <a data-action="collapse" href="#">
                            <i class="icon-chevron-up"></i>
                        </a>
                    </span>
                </div>
                <div class="widget-body">
                    <div class="widget-body-inner">
                        <div class="widget-main">
                            <table id="sample-table-5" class="table table-striped table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th>Descripci&oacute;n</th>
                                        <th>Tarifa</th>                             
                                        <th>Acciones</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php foreach ($registros as $fila) { ?>
                                    <tr class="desmarcado" style="cursor: pointer;">               
                                            <td><?php echo $fila->desc_tipo; ?></td>
                                            <td><?php echo $fila->tarifa; ?></td>                        
                                            
                                            <td class="td-actions">
                                                <div class="hidden-phone visible-desktop action-buttons">
                                                    <a class="blue" href="#"><i class="icon-zoom-in bigger-130"></i></a>                            
                                                    <a class="green" href="<?php echo base_url("intranet/administrador/formTipoHabitacion/$fila->id_tipo"); ?>"><i class="icon-pencil bigger-130"></i></a>                            
                                                    <a class="red" href="#"><i class="icon-trash bigger-130"></i></a>                            
                                                </div>
                                            </td>
                                        </tr>
                                    <?php } ?>                    
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

